pathToImg = "C:\\Users\\Public\\Pictures\\Sample Pictures\\";
images_to_open = newArray("Chrysanthemum.jpg", "Desert.jpg", "Hydrangeas.jpg");

saveImgPath = "C:\\Users\\Public\\Pictures\\Sample Pictures\\";
saveImgName = "stack_from_open_images_Arrays.zip";
saveImgType = "ZIP";

for( i = 0; i < images_to_open.length; i++ ) {

	open(pathToImg + images_to_open[i]);
}

run("Images to Stack", "name=stack_from_open_images title=[] use keep");

saveAs(saveImgType, saveImgPath + saveImgName);